package com.ts.animal.service;

import com.ts.animal.domain.BaseStationDO;
import com.ts.animal.domain.RfidLabelDO;
import com.ts.common.utils.Result;

import java.util.List;
import java.util.Map;

/**
 * bs_base_station 基站
 *
 * @author bobby
 * @email bobby@126.com
 * @date 2022-09-02 16:09:19
 */
public interface BaseStationService {

    BaseStationDO get(String baseStationNum);

    List<Map<String, Object>> list(Map<String, Object> map);

    List<BaseStationDO> deptSelectBaseStationList(Map<String, Object> map);

    void baseStationToCache(BaseStationDO... baseStationDOs);

    int count(Map<String, Object> map);

    int save(Result result, BaseStationDO baseStation);

    int relateStation(Result result, long deptId, String[] baseStationNumList);

    int update(Result result, BaseStationDO baseStation);

    int remove(Result result, String baseStationNum);

    int batchRemove(Result result, String[] baseStationNums);

    void resolveData(String dataString);

    void batchSaveData();

    void batchDeleteRfidDataHistory();

    void batchRfidLabelData(long deptId);

    public void batchSaveRfidData(List<RfidLabelDO> rfidLabelDOs,
                                  String useStatusYes,
                                  String useStatusNot,
                                  String useStatusTest,
                                  String testDeptIds,
                                  String autoEnterDataSwitch);
}
